import request from '@/utils/request'

// 查询过程管理数据列表
export function listProcessrecord(query) {
  return request({
    url: '/processrecord/processrecord/list',
    method: 'get',
    params: query
  })
}

// 查询过程管理数据详细
export function getProcessrecord(id) {
  return request({
    url: '/processrecord/processrecord/' + id,
    method: 'get'
  })
}

// 新增过程管理数据
export function addProcessrecord(data) {
  return request({
    url: '/processrecord/processrecord',
    method: 'post',
    data: data
  })
}

// 修改过程管理数据
export function updateProcessrecord(data) {
  return request({
    url: '/processrecord/processrecord',
    method: 'put',
    data: data
  })
}

// 删除过程管理数据
export function delProcessrecord(id) {
  return request({
    url: '/processrecord/processrecord/' + id,
    method: 'delete'
  })
}
